
/**
 * Write a description of class Example2 here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */


import java.util.Random;

public class Example2
{
    public static void main(String[] args)
    {
        // create new random number generator
       Random generator = new Random();
       
       //assign next random number(integer) to num
       int num = generator.nextInt(5);
       
      System.out.println("I found " + num + " message in my mailbox");
    }
}
 /*
  My Output:
 I found 4 message in my mailbox
I found 3 message in my mailbox
I found 0 message in my mailbox

  
  */